package com.rengl.ssmmvc.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {

    @TableId(type = IdType.AUTO)
    private Long id;
    private String name;
    private String username;
    private String password;
    private String mobile;
    private int age;
    private String email;

    public User(String name, String username, String password, String mobile, int age, String email) {
        this.name = name;
        this.username = username;
        this.password = password;
        this.mobile = mobile;
        this.age = age;
        this.email = email;
    }
}
